package com.hymjweb.demo.hymj.customer_manage.bean;

import com.hymjweb.demo.framework.cache.bean.CachePojo;
import com.hymjweb.demo.framework.util.pojoContrast.FieldMeta;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.util.Date;

@Table(name = "b_customer")
@Data
@EqualsAndHashCode(callSuper = false)
public class BCustomerPojo extends CachePojo {

    @FieldMeta(columnname = "full_pinyin", name = "客户名称全拼音")
    private String fullPinyin;

    @FieldMeta(columnname = "camel_char_pinyin", name = "客户名称首字母拼音大写")
    private String camelCharPinyin;

    @FieldMeta(columnname = "short_name", name = "客户简称")
    private String shortName;

    @FieldMeta(columnname = "short_name_full_pinyin", name = "客户简称全拼音")
    private String shortNameFullPinyin;

    @FieldMeta(columnname = "short_name_camel_char_pinyin", name = "客户简称首字母拼音大写")
    private String shortNameCamelCharPinyin;

    @FieldMeta(columnname = "phone", name = "客户电话")
    private String phone;

    @FieldMeta(columnname = "address", name = "客户地址")
    private String address;

    @FieldMeta(columnname = "department_id", name = "归属部门ID" , comment = "关联XT_DEPARTMENT.ID")
    private String departmentId;

    @FieldMeta(columnname = "salesman_id", name = "归属业务员ID" , comment = "关联XT_USER.ID")
    private String salesmanId;


    @FieldMeta(columnname = "support_monthly_statement_status_id", name = "支持欠款月结状态ID", comment = "关联XT_DIC.ID,KEY='XT_DIC_YES_NO'")
    private Long supportMonthlyStatementStatusId;

    @FieldMeta(columnname = "credit_term", name = "信用期限(天)",comment = "如果不填写默认填0.00")
    private Long creditTerm;

    @FieldMeta(columnname = "arrears_lines", name = "欠款额度",comment = "如果不填写默认填0.00")
    private Double arrearsLines;

    @FieldMeta(columnname = "air_freight_insurance_rate", name = "空运保险费率",comment = "保留两位小数点,如果不填写默认填0.00")
    private Double airFreightInsuranceRate;

    @FieldMeta(columnname = "auto_insurance_rate", name = "汽运保险费率",comment = "保留两位小数点,如果不填写默认填0.00")
    private Double autoInsuranceRate;

    @FieldMeta(columnname = "comment", name = "备注")
    private String comment;

    @FieldMeta(columnname = "create_time", name = "创建时间")
    private Date createTime;

    @FieldMeta(columnname = "create_user_id", name = "记录添加人ID", comment = "关联XT_USER.ID")
    private String createUserId;

    @FieldMeta(columnname = "update_time", name = "更新时间")
    private Date updateTime;

    @FieldMeta(columnname = "update_user_id", name = "更新用户ID", comment = "关联XT_USER.ID")
    private String updateUserId;

}
